/**
 * output package name
 */
package com.kingdee.eas.custom.hostelmgr.basedata;

import java.util.Map;
import java.util.List;
import java.util.Iterator;
import com.kingdee.util.enums.IntEnum;

/**
 * output class name
 */
public class TypeEnum extends IntEnum
{
    public static final int BUILDING_VALUE = 1;
    public static final int UNIT_VALUE = 2;
    public static final int FLOOR_VALUE = 3;
    public static final int ROOM_VALUE = 4;
    public static final int BED_VALUE = 5;

    public static final TypeEnum BUILDING = new TypeEnum("BUILDING", BUILDING_VALUE);
    public static final TypeEnum UNIT = new TypeEnum("UNIT", UNIT_VALUE);
    public static final TypeEnum FLOOR = new TypeEnum("FLOOR", FLOOR_VALUE);
    public static final TypeEnum ROOM = new TypeEnum("ROOM", ROOM_VALUE);
    public static final TypeEnum BED = new TypeEnum("BED", BED_VALUE);

    /**
     * construct function
     * @param integer typeEnum
     */
    private TypeEnum(String name, int typeEnum)
    {
        super(name, typeEnum);
    }
    
    /**
     * getEnum function
     * @param String arguments
     */
    public static TypeEnum getEnum(String typeEnum)
    {
        return (TypeEnum)getEnum(TypeEnum.class, typeEnum);
    }

    /**
     * getEnum function
     * @param String arguments
     */
    public static TypeEnum getEnum(int typeEnum)
    {
        return (TypeEnum)getEnum(TypeEnum.class, typeEnum);
    }

    /**
     * getEnumMap function
     */
    public static Map getEnumMap()
    {
        return getEnumMap(TypeEnum.class);
    }

    /**
     * getEnumList function
     */
    public static List getEnumList()
    {
         return getEnumList(TypeEnum.class);
    }
    
    /**
     * getIterator function
     */
    public static Iterator iterator()
    {
         return iterator(TypeEnum.class);
    }
}